package cn.itsource.ymcc.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 登录表
 * </p>
 *
 * @author Mr.xiang
 * @since 2023-09-30
 */
@TableName("t_login")
@Data
public class Login extends Model<Login> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String username;

    private String password;

    /**
     * 0是后台，1是前台
     */
    private Integer type;

    private Integer enabled;

    private Boolean accountNonExpired;

    private Boolean credentialsNonExpired;

    private Boolean accountNonLocked;

    /**
     * 对应Oauth2客户端详情ID
     */
    private String clientId;

    private String clientSecret;

    private String avatar;



}
